package org.xb.db;

import java.sql.Connection;
import javax.sql.*;
import javax.naming.*;
public class Conn {
/*private Connection conn=null;
private static final String DBNAME="java:comp/env/jdbc/xt";
public Conn()throws Exception{
	try{
		Context ct=new InitialContext();
		DataSource ds=(DataSource)ct.lookup(DBNAME);
		this.conn=ds.getConnection();
	}catch(Exception e){
		e.printStackTrace();
	}
}
public Connection getConnection(){
	 return this.conn;
}
public void close()throws Exception{
	if(this.conn!=null){
		try{
			this.conn.close();
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}*/
}
